package com.yanh.merchant.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Schema(description = "门店信息")
@Data
public class StoreDTO implements Serializable {

	@Schema(description = "门店Id")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long id;

	@Schema(description = "门店名称")
	private String storeName;

	@Schema(description = "门店地址")
	private String storeAddress;

	@Schema(description = "门店编号")
	private Long storeNumber;

	@Schema(description = "门店状态")
	private Boolean storeStatus;

	@Schema(description = "所属商户")
	@JsonSerialize(using= ToStringSerializer.class)
	private Long merchantId;

	@Schema(description = "父门店")
	private Long parentId;

	@Schema(description = "门店管理员")
	private List<StaffDTO> staffs;
}
